﻿using Blog.System.Application.Contracts;
using Blog.System.Domain;
using Blog.System.Domain.Configurations;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Caching;
using Volo.Abp.Modularity;

namespace Blog.System.Application.Caching
{
    [DependsOn(
        typeof(AbpCachingModule),
        typeof(BlogDomainModule),
        typeof(BlogApplicationContractsModule))]
    public class BlogApplicationCachingModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddStackExchangeRedisCache(options =>
            {
                options.Configuration = AppSettings.Caching.RedisConnectionString;
            });
        }
    }
}
